body{
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: url('./picture/背景.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.box{
    background-image: url('./picture/登录框背景图.jpg');
    position: relative;
    top: 50%;
    left: 25%;
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 5%;
    transform: translate(-50%, -50%);
}
/* 登录按钮盒子 */
.fore{
    background-color: lightpink;
    position: absolute;
    top: 77%;
    left: 50%;
    width: 180px;
    height: 60px;
    object-fit: cover;
    border-radius: 5%;
    transform: translate(-50%, -50%);
}
button {
    background-color: lightpink; /* 背景颜色 */
    color: white; /* 文字颜色 */
    border: none; /* 去除边框 */
    border-radius: 5%; /* 圆角 */
    cursor: pointer; /* 鼠标指针样式 */
}
button:hover {
    background-color: rgb(236, 131, 147); /* 鼠标悬停时的背景颜色 */
}
button:active {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}


.text1{
    font-size: 28px;
    font-family: 楷体;
    text-align: center;
    line-height: 60px;
    color: aliceblue;
}
/* 欢迎登录标题文本 */
.text2{
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-family: 楷体;
    font-weight: 400;
    color: rgb(243, 141, 226);
}
/* 用户名盒子 */
.username{
    background-color: lightpink;
    position: absolute;
    width: 270px;
    height: 45px;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 10px 50px lightpink,0 0 0 4px #fff;
}
/* 密码盒子 */
.password{
    background-color: lightpink;
    position: absolute;
    width: 270px;
    height: 45px;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 10px 50px lightpink,0 0 0 4px #fff;
}
.username input{
    position: absolute;
    left: 10%;
    width: 80%;
    height: 80%;
    color: #fff;
    border: 0;
    background-color: transparent;
}
.password input{
    position: absolute;
    left: 10%;
    width: 80%;
    height: 80%;
    color: #fff;
    border: 0;
    background-color: transparent;
}
input:focus {
    outline: none;
  }
/* 输入框文字大小 */
.size{
    font-size: 21px;
}
/* 用户服务协议 */
.text3{
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgb(243, 141, 226);
}
a{
    color: grey;
}
a:hover{
    color: black;
}
/* 注册文字 */
.register{
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgb(243, 141, 226);
}

.mistake{
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.check{
    position: absolute;
    top: 93%;
    left: 50%;
    font-size: 14px;
    transform: translate(-50%, -50%);
}